<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="SHOTCUT ICON" href="../image/administrator.ico">
<link href="../css/style.css" rel="stylesheet" type="text/css">
<title>รายละเอียดการชำระเงิน</title>
</style>
</head>
<?php
	include("../config.php");
	include("../include/function.php");
?>
<BODY BGCOLOR="#FFFFFF">
<br>
<br>
	<?php
		$sql="select * from payment where reserve_id=".(int)$_GET["id"];
		mysql_db_query($dbm,"SET NAMES utf8");
		$result=mysql_db_query($dbm, $sql);
		
		$record=mysql_fetch_array($result, MYSQL_ASSOC);
		print "<table border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">";
			print "<tr class=\"th_dt\">";
				print "<td align=\"right\"><b>ชื่อผู้โอน&nbsp;:&nbsp;</b></td>";
				print "<td align=\"left\">".$_GET["cs_name"]."</td>";
			print "</tr>";
			print "<tr class=\"th_dt\">";
				print "<td align=\"right\"><b>ธนาคารต้นทางที่โอน&nbsp;:&nbsp;</b></td>";
				print "<td align=\"left\">".$record["bank"]."</td>";
			print "</tr>";
			print "<tr class=\"th_dt\">";
				print "<td align=\"right\"><b>สาขา&nbsp;:&nbsp;</b></td>";
				print "<td align=\"left\">".$record["bank_branch"]."</td>";
			print "</tr>";
			print "<tr class=\"th_dt\">";
				print "<td align=\"right\"><b>วันเวลาที่โอนเงิน&nbsp;:&nbsp;</b></td>";
				print "<td align=\"left\">".date("d/m/Y H:i:s", strtotime($record["transfer_date"]))."</td>";
			print "</tr>";
			print "<tr class=\"th_dt\">";
				print "<td align=\"right\"><b>ยอดเงินที่ชำระ&nbsp;:&nbsp;</b></td>";
				print "<td align=\"left\">".$record["transfer_amount"]."&nbsp;บาท</td>";
			print "</tr>";
		print "</table>";
	?>
</body>
</html>